<%--
  Created by IntelliJ IDEA.
  User: csnf
  Date: 2024/12/31
  Time: 10:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>编辑任务</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      margin: 20px;
      padding: 0;
      background-color: #f4f4f9;
    }
    form {
      max-width: 400px;
      margin: auto;
      padding: 20px;
      background-color: #fff;
      border-radius: 5px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
    label {
      display: block;
      margin-bottom: 5px;
      font-weight: bold;
    }
    input[type="text"],
    input[type="date"],
    input[type="time"] {
      width: 100%;
      padding: 8px;
      margin-bottom: 10px;
      border: 1px solid #ccc;
      border-radius: 4px;
    }
    input[type="submit"] {
      background-color: #28a745;
      color: white;
      padding: 10px 15px;
      border: none;
      border-radius: 4px;
      cursor: pointer;
    }
    input[type="submit"]:hover {
      background-color: #218838;
    }
  </style>
</head>
<body>
<form action="updateTask" method="post">
  <input type="hidden" name="taskId" value="${task.taskId}">
  <label for="taskName">任务名称：</label>
  <input type="text" id="taskName" name="taskName" value="${task.taskName}"><br>
  <label for="taskGroup">任务分组：</label>
  <input type="text" id="taskGroup" name="taskGroup" value="${task.taskGroup}"><br>
  <label for="taskContent">任务内容：</label>
  <input type="text" id="taskContent" name="taskContent" value="${task.taskContent}"><br>
  <label for="taskExpression">任务表达式：</label>
  <input type="text" id="taskExpression" name="taskExpression" value="${task.taskExpression}"><br>
  <label for="taskState">任务状态：</label>
  <input type="text" id="taskState" name="taskState" value="${task.taskState}"><br>
  <label for="taskDate">任务日期：</label>
  ${task.taskDate}<br>
  <input type="date" id="taskDate" name="taskDate">
  <input type="time" id="taskTime" name="taskTime"><br>
  <label for="taskStrategy">任务策略：</label>
  <input type="text" id="taskStrategy" name="taskStrategy" value="${task.taskStrategy}"><br>
  <label for="taskCurrent">任务当前：</label>
  <input type="text" id="taskCurrent" name="taskCurrent" value="${task.taskCurrent}"><br>
  <label for="taskDesc">任务描述：</label>
  <input type="text" id="taskDesc" name="taskDesc" value="${task.taskDesc}"><br>
  <input type="submit" value="修改">
</form>
</body>
</html>
